Qt India

RSS Feed
A group for the Indian Qt Developer community. To learn, discuss and showcase Qt apps, ask questions, troubleshoot and help each other. All other members are also welcome to join.
Founder: Deleted Member # 4a2
Members: 654
Category: Regional
Join group

This is an overview of the latest updated topics, visit the full forum here.

2
replies

I need help on taking a flash webvideo screenshot on Pyside or PyQt4

by: rasheedahmed27 | Views: 99 | Forum: India | Last post by rasheedahmed27, October 16, 2014

i have an issue on taking a screenshot of the youtube video page.

in Pyside i have enabled flash function using below command to play video on Pyside browser

  1.     s.setAttribute(QWebSettings.PluginsEnabled, True)
  2.     s.setAttribute(QWebSettings.JavascriptEnabled, True)

now my script can open video embedded website and playing videos but when i tried to capture screenshot it showing Black screen on video embedded place.

Script:

#!/usr/bin/env python
#-*- coding:utf-8 *

@from PySide.QtCore import Qt, QUrl, QTimer, Slot
from PySide.QtGui import QApplication, QImage, QPainter
from PySide.QtWebKit import QWebView, QWebPage, QWebSettings
from PySide.QtNetwork import QNetworkRequest, QNetworkReply
import time, sys

class Render(QWebView): def init(self, url, filename, image_crop, translate_page, parent=None): super(Render, self).init(parent) self.image_crop = image_crop self.fileName = time.strftime(”%Y%m%d%H%M%S”,time.localtime()) +”_test.jpg” self.finished = False

# Settings s = self.page().settings() s.setAttribute(QWebSettings.AutoLoadImages, True) s.setAttribute(QWebSettings.PluginsEnabled, True) s.setAttribute(QWebSettings.JavascriptEnabled, True) s.setAttribute(QWebSettings.JavaEnabled, False) s.setAttribute(QWebSettings.JavascriptCanOpenWindows, False) s.setAttribute(QWebSettings.DeveloperExtrasEnabled, True) #self.page().mainFrame().setScrollBarPolicy(Qt.Horizontal, Qt.ScrollBarAlwaysOff) self.page().mainFrame().setScrollBarPolicy(Qt.Vertical, Qt.ScrollBarAlwaysOff) self.timerScreen = QTimer() self.timerScreen.setInterval(10000) self.timerScreen.setSingleShot(True) self.timerScreen.timeout.connect(self.takeScreenshot) self.loadFinished.connect(self.timerScreen.start) self.load(QUrl(url)) @Slot(QNetworkReply) def takeScreenshot(self): [...]
2
replies

changing image by using keypress

by: sasireka | Views: 193 | Forum: India | Last post by SGaist, September 30, 2014

hi all,

Good day. I want to change the image using keypress. If i am pressing F2, in screen i have to show first image. Again pressing F2 second time in screen have to show next image. please give me some IDEA and SIMPLE EXAMPLE to do it.

Thanks & Regards
Sasi

5
replies

connecting the image slice change with the slider

by: rekhap | Views: 176 | Forum: India | Last post by rekhap, September 27, 2014

hello,
m really stuck with an issue and m new to qt..
plz help me out.
my task is to read the image of x number of slice.. display it,, set slider and spin box so that all three shud interact with each other.
sinbox- slider
slider-spinbox
slider-qvtkwidget these are connected bt when i move the mouse wheel for changing the image slice the slider has to be moved according to the mouse wheel.. m nt understanding how to connect it.

thanks inadvance

20
replies

[solved] how to set local fonts

by: sasireka | Views: 405 | Forum: India | Last post by sasireka, September 26, 2014

hi all,
how to set local fonts. I am trying with this code. this is working for english but not for “lohit tamil”.

  1.  ui->label1->setStyleSheet ("font: 40pt \"Lohit Tamil\";");
  2.             ui->label1->setText("சென்னை");
  3.             //ui->label1->setText("tamil");
  4.             ui->label1->show();
0
replies

Qt Quick app on WP8: Shaders not compiling

by: dsanjit | Views: 116 | Forum: India

Hi !
I am writing a 2D game and need to deploy on Windows Phone, iOS and Android. My prototype runs well on Android and Desktop/Mingw but no matter what I do I just cannot deploy on a Windows Phone – the shaders dont compile. I have VS2012 for Windows phone as well as VS2013 Desktop, Store and the Pro version along with all the other SDKs. I ran qmake -tp VC CONFIG= ….. and got the game to build fine on VS2012 for WP (also compiles in VS2013-Pro/WP8). I run QtD3dservice and it recognizes my Nokia Lumia on Device 0 and lists the apps in there. But when I hit run the shaders dont seem to compile.

I have no idea what I am doing wrong. Please help. I would also appreciate a paid consultant to assist me if possible, possibly located in Bangalore India. Please email me at dsanjit@yahoo.com.

This is rather urgent.

Cheers
Sanjit

1
replies

Is it possible to define query globally

by: trupti | Views: 152 | Forum: India | Last post by McLion, September 17, 2014

Hello I am new in Qt Development.
Can anyone plz suggest how to define a query globally??
Also is it possible to use query in header file??

[andreyc EDIT]: to avoid duplication of the answers I closed this thread.
Use this tread http://qt-project.org/forums/viewthread/47502/

3
replies

Extract text from images?

by: achiever | Views: 222 | Forum: India | Last post by JKSH, September 9, 2014

Hello all, I just want to know how to extract text from image(.jpg). Can anyone suggest me?

Thanks

36
replies

Welcome to Qt India Group and Forum

by: Deleted Member # 4a2 | Views: 8067 | Forum: India | Last post by Rathnadhar, August 20, 2014

The basic rules of the Devnet forum also apply to this group/forum.

See http://developer.qt.nokia.com/wiki/ForumHelp [developer.qt.nokia.com]

Small note: There are infinite possibilities that mobile apps can achieve to the Indian people and the environment here. The field is totally untapped. Nokia is the leading mobile device player here and Qt is the best possible cross platform development framework probably available.

This group has just been created and look forward to more activities here.

  • Learning Qt
  • Troubleshooting
  • Wiki articles
  • Brainstorm your ideas

Open for your ideas …

1
replies

qt giving the ld error

by: Nilesh Prakash Kokane | Views: 286 | Forum: India | Last post by Nilesh Prakash Kokane, August 9, 2014

Hi ,

Based on the url http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard

bitbake core-image-minimal and bitbake meta-toolchain-qt5

Both gave me success.

But after setting the qt creator and running the example clocks code its giving me the ld errors as follows

09:41:15: Running steps for project clocks…

09:41:15: Configuration unchanged, skipping qmake step.

09:41:15: Starting: “/usr/bin/make”

arm-linux-gnueabi-g++ -o clocks main.o qrc_clocks.o -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib -lQt5Quick -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lpthread

/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find /lib/libpthread.so.0 inside

/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside

collect2: error: ld returned 1 exit status

make: *** [clocks] Error 1

09:41:15: The process “/usr/bin/make” exited with code 2.

Error while building/deploying project clocks (kit: wandboard)

When executing step ‘Make’

09:41:15: Elapsed time: 00:00.

I’ve assuared that the set up in the Configure Qt creators OK , but its still giving the error.

can you suggest me for that.

0
replies

Qprinter receipt issue

by: saravanavelu39 | Views: 183 | Forum: India

Hi all,
This is my code

  1. QESCPOS printer("/dev/ttyUSB0");
  2.  
  3.     printer.open(QIODevice::ReadWrite);
  4.     printer.autoConfig();
  5.  
  6.     /*printer.setBaudRate(BAUD19200);
  7.     printer.setFlowControl(FLOW_HARDWARE);
  8.     printer.setParity(PAR_NONE);
  9.     printer.setCharacterCodeTable(QESCPOS::CCT_PC850);
  10.     printer.setInternationalCharacterSet(QESCPOS::ICS_CHINESE);
  11.  
  12.  
  13.    
  14.     printer.initialize();*/
  15. //    printer.cutPaper(true, 0);
  16.  
  17.     /*QList<QImage> l;
  18.     l.append(QImage("/home/qdot/Downloads/logo.png"));
  19.     printer.defineNVRaster(l);*/
  20.  
  21.     printer.write("Test: 大虾多士\n");
  22.     printer.cutPaper(true, 0);

in here i need to display (” Test: 大虾多士\n”) in the receipt,,please give me a suggesstion

This is an overview of the latest updated topics, visit the full forum here.