Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • 0 Votes
    6 Posts
    8k Views
    L
    Honestly, I don't know, maybe because the article focus is on design, not performance.
  • How to make our own event?

    5
    0 Votes
    5 Posts
    2k Views
    R
    I am trying to make an event. My event want to imitate a mouse click using a point that was detected or not (ON-OFF-ON) using a laser pointer. When a user pointing laser pointer spotlight and the spotlight entering an item then a user give ON-OFF-ON sequence, it means that "item-clicked". Is there any suggestion? Thanks in advance
  • [SOLVED] Can i still use LGPL license?

    11
    0 Votes
    11 Posts
    7k Views
    C
    I also needed the sdk installers for both windows and linux. I was able to locate them both here: http://vctwang.jiangnan.edu.cn/mirrors/tools/programming/qt/ If that link no longer works then you may find alternative links here: http://www.mmnt.net/db/0/0/www.lpi.ac-poitiers.fr/pub/programmation/qtcreator http://www.mcs.sdsmt.edu/csc421/Resources/
  • Is resizing a QGLWidget glitchy or am I doing it wrong ?

    4
    0 Votes
    4 Posts
    5k Views
    B
    Hi, After some more wandering on the web, I found out that this question has been asked many times before (sometime even on this very website). Unfortunately, the threads I found did not carry any answer and some didn't even got any reply. I also found a bug-report (that remain open for now, there is still hope) on this topic : https://bugreports.qt-project.org/browse/QTBUG-17869 I also got a promising article that pretend the solution is actually there somewhere inside Qt since version 4.4 (although it might involve some dark magics). I couldn't understand very well how to do it but it is apparently possible : http://blog.qt.digia.com/blog/2007/08/09/qt-invaded-by-aliens-the-end-of-all-flicker/ Lastly but not least, I RTFM at the documentation on the QSplitter (which I should have done in the first place I know, sorry) and found out that it is possible to simply prevent the widgets to be updated while the splitter is being used : splitter->setOpaqueResize(false); Myself I will stick with my original solution for now : using a single QGLWidget and draw twice inside it using 2 differents glViewport with some custom splitter controls. ...at the cost of performance sadly. PS : if you are looking for a solution on your own, I share that I had the best luck with the search engines using the following terms : qt, QGLWidget, flicker, resizing.
  • Drag and Drop, QListWidget, and QApplication:mouseButtons()

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt 4.8: QGLFunctions functions crash in release build

    3
    0 Votes
    3 Posts
    6k Views
    B
    I have exactly the same issue.
  • QPlainTextEdit -> popupMenu ->Copy ... dead ... :(

    5
    0 Votes
    5 Posts
    2k Views
    T
    Please "file a bug report":https://bugreports.qt-project.org/ then. Reports to the forum are mostly ignored since the responsible developers will never see them:-/
  • [Solved] Threads, timers and moveToThread()

    5
    0 Votes
    5 Posts
    13k Views
    A
    [quote author="astodolski" date="1355750978"] I was looking at an article which a "tutorial":http://qt-project.org/forums/viewthread/14806 was created on this forum and an important point was "NEVER allocate heap objects (using new) in the constructor of the QObject class as this allocation is then performed on the main thread and not on the new QThread instance, meaning that the newly created object is then owned by the main thread and not the QThread instance"__ [/quote]"never" is a bit strong, and other tutorials don't give that limitation. Children objects are moved automatically to the new thread wherever they are allocated from, so if there is a crash as the tutorial author says there is a problem somewhere else. [quote]Can you elaborate what you mean by removing the explicit connection type from the connect call?[/quote]I mean to remove the Qt::QueuedConnection parameter from the QObject::connect call: if you don't specify that parameter, it defaults to "Qt::AutomaticConnection":http://qt-project.org/doc/qt-4.8/qt.html#ConnectionType-enum which will automatically be queued if the signal and the slot belongs to different threads. So most of the time, you can omit it. I think that Qt::QueuedConnection is mostly useful within a single thread, when you don't want the slot execution to be "inlined" into the emitting function.
  • Forum issue - Registration with NoScript

    2
    0 Votes
    2 Posts
    1k Views
    sierdzioS
    Issues like this should be posted to "Beta Testing":https://qt-project.org/forums/viewforum/5/ subforum, and/ or reported on JIRA.
  • Convert Yuv420 to rgb and show on qt pixmap

    4
    0 Votes
    4 Posts
    15k Views
    I
    In may case frame is AVFrame from ffmpeg. But in general video frame can has some planes of data - @data[0], data[1], data[2]@ and linesize for each data plane @linesize[0], linesize[1], linesize[2].@ Linesize is width (in pixel) multiplied by bytes per pixel. You can also check wiki page on yuv420 and read in more details on fourcc.org.
  • Qt: How to display only Image and hide text in a QCombobox

    4
    0 Votes
    4 Posts
    5k Views
    A
    If you want some extra/custom functionality, you should do it yourself... or use it as is....
  • 0 Votes
    3 Posts
    1k Views
    A
    The problem was with my code. QtConcurrent::run() always calls the function, once thread is available.
  • [SOLVED] QTCPSocket receives only 0 byte long packet

    3
    0 Votes
    3 Posts
    1k Views
    J
    Ok thanks for your reply, it works now. Because of your comment I have searched for an alternative and I have changed the code of the method to this. And now it works also with a tcp server which is written in standard C/C++. @ void MainWindow::readFromSocket(){ qint64 iSize=4096; QByteArray sInput; sInput=m_Socket.read(iSize); qDebug()<<"Read bytes >>"<<sInput.size()<<"<< and the message >>"<<sInput<<"<<\n"; } @ Regards Jan
  • [SOLVED] QFile open in text mode error.

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks, AcerExtensa. Now it works.
  • [solved] Problem with Qt 5.0 rc2 - Compiler path not found.

    5
    0 Votes
    5 Posts
    4k Views
    M
    billouparis, My mistake, I meant build with* Qt 5 ... not to compile Qt 5 sources. It seems that you can't use MinGW with Qt 5.0 rc2. But I guess I should wait the final version to ask...
  • QSslSocket and unresolved functions

    3
    0 Votes
    3 Posts
    7k Views
    A
    Yes you are right! Uninstalling the 64 bit version and installing the 32 bit version solved the problem! Thanks for suggestion!
  • Running the project in different QT Creator verison

    3
    0 Votes
    3 Posts
    838 Views
    T
    Thanks, it works.
  • [Solved]How to close the application from child dialog box

    5
    0 Votes
    5 Posts
    2k Views
    Z
    Hello All Thanks for replies, I got solution for it. I used MyDialog.show() instead of MyDialog.exec();//it worked Thanks once again :)
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • QPropertyAnimation for sliding menu [Solved]

    7
    0 Votes
    7 Posts
    9k Views
    S
    [quote author="callum.chalmers" date="1355813045"]Thanks for that! Worked like a charm[/quote] Glad to be of some help, Kindly Edit your first post and prepend [Solved] to the title.