Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • How to build Qt5Webkit with v8 ?

    1
    0 Votes
    1 Posts
    778 Views
    No one has replied
  • Why set QAbstractFileEngine "private"

    1
    0 Votes
    1 Posts
    894 Views
    No one has replied
  • Frame rate is affected by displaying two videos on the mainwindow

    1
    0 Votes
    1 Posts
    753 Views
    No one has replied
  • The best way to 'wrap' QKeySequence? [ABANDONED]

    3
    0 Votes
    3 Posts
    2k Views
    R
    Neither. The concept of 'Mouse Shortcuts' is best handled at the Desktop and KApplication layers, not down inside Qt.
  • 0 Votes
    5 Posts
    8k Views
    D
    Ah, I see - I hadn't considered these more complicated scenarios. Thanks for the INCLUDEPATH tip, too - I think this sounds like the best fit for my programming style.
  • [SOLVED] Linker error with two QUuid in a QPair

    2
    0 Votes
    2 Posts
    1k Views
    B
    It seems that it was a Microsoft compiler problem. I added a typedef for the list and implemented the getter and setter directly in the header and now it is working.
  • QObject::connect: Cannot queue arguments of type 'QTextCharFormat'

    4
    0 Votes
    4 Posts
    7k Views
    D
    Hello ChrisW67 and Lukas First, I changed to: @ QString program = "../helper-functions/Perl/DiscoverNodes"; QProcess *myprocess = new QProcess(this); qRegisterMetaType<QTextCharFormat>("QTextCharFormat"); qRegisterMetaType<QTextCursor>("QTextCursor"); //myprocess->startDetached(program.toStdString().c_str()); myprocess->start(program);@ Next, about segfault: I did a core dump, and here is the info: #0 0x00007f4eb7f04525 in QTextLayout::createLine() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #1 0x00007f4eb7f3976a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #2 0x00007f4eb7f413a0 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #3 0x00007f4eb7f3fef1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #4 0x00007f4eb7f4040f in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #5 0x00007f4eb7f42741 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #6 0x00007f4eb7f436c9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #7 0x00007f4eb7f23284 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #8 0x00007f4eb7ee443d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #9 0x00007f4eb81080d2 in QTextEdit::append(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #10 0x0000000000405640 in publish_to_Browser (TB=0x224c5e0, messagetype=3 '\003', message=...) at ../QDAL/PublishtoBrowser.cpp:35 #11 0x00000000004052d0 in Populate_Browser_WithData (file=..., thisObject=0x7fff0be41460, resourcetype=2 '\002') at ../QDAL/class_discovernodes.cpp:117 #12 0x00000000004050ca in class_discoverNodes::run (this=0x7fff0be41460) at ../QDAL/class_discovernodes.cpp:61 #13 0x00007f4eb767baec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #14 0x00007f4eb68d7e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #15 0x00007f4eb6e1acbd in clone () from /lib/x86_64-linux-gnu/libc.so.6 #16 0x0000000000000000 in ?? () I suspect something is wrong with QTextBrowser instance. I still cannot figure out what. If anyone is interested, I can make the project available. Thanks! Devendra
  • [Closed] How to set timer for youTube video to run on webview?

    Locked
    2
    0 Votes
    2 Posts
    891 Views
    M
    Please don't double post questions. Closing this one.
  • QLabel in the center of a QWidget

    3
    0 Votes
    3 Posts
    10k Views
    B
    [quote author="Krzysztof Kawa" date="1357229504"]You need to layout the label in the parent widget: @ void MyWidget::AnimatedLogo(QString logotype) { QMovie *MyLogoMovie = new QMovie(logotype); MyLogoLabel = new QLabel(); MyLogoLabel ->setMovie(MyLogoMovie); MyLogoMovie->start(); MyLogoLabel->setAlignment(Qt::AlignCenter); // MyLogoLabel >show(); //this is redundant QVBoxLayout* layout = new QVBoxLayout(); layout->addWidget(MyLogoLabel); setLayout(layout); } @ Btw. identifier names starting with capital letter are usually used for class names not variables.[/quote] THANK YOU! bq. Btw. identifier names starting with capital letter are usually used for class names not variables. Thanks for the tip.
  • Set LineWith using Qt5 on Windows with OpenGL

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved] Howto get the path part of a filename?

    4
    0 Votes
    4 Posts
    3k Views
    Chris KawaC
    Well according to the doc cannonicalPath() indeed returns empty string if the file doesn't exist but you should be fine with absolutePath()
  • Limit Drag And Drop Vertically

    1
    0 Votes
    1 Posts
    933 Views
    No one has replied
  • Macdeployqt, one dmg, more app

    1
    0 Votes
    1 Posts
    593 Views
    No one has replied
  • Convert a graphicScene to image

    2
    0 Votes
    2 Posts
    971 Views
    B
    Read these: http://stackoverflow.com/questions/6844242/saving-a-qgraphicsscene-image or http://www.qtcentre.org/threads/30892-QGraphicsView-Scene-to-png-image
  • AT&T iOS SDK

    2
    0 Votes
    2 Posts
    1k Views
    W
    So far I have found the following: "Video from JAM Americas on iOS porting for BB10.":http://www.youtube.com/watch?v=6VXu30xLV68 "Documentation on iOS porting for BB10.":https://developer.blackberry.com/cascades/documentation/getting_started/porting/index.html "Documentation on Language differences.(iOS, C++, C#, Java)":http://hyperpolyglot.org/cpp
  • Undefined reference to WinMain@16

    9
    0 Votes
    9 Posts
    26k Views
    V
    Thanks kwalle
  • How to run video in webview for few seconds using threads?

    3
    0 Votes
    3 Posts
    1k Views
    P
    Hi Leon I mean that : If user enter time then youTube video should be played for that time interval only. Thanks & Regards priya_sipl
  • QVBoxLayout not shown corectly

    2
    0 Votes
    2 Posts
    1k Views
    B
    Try something like this: @ QWidget widget; QLineEdit* lineEdit = new QLineEdit; QLabel* label = new QLabel; QVBoxLayout* layout = new QVBoxLayout; //replace these with your for loop layout->addWidget( lineEdit ); layout->addWidget( label ); // you can use this at the end of the widgets (after the for loop) layout->addStretch(); widget.setLayout( layout ); // important @
  • App_crash on exit

    1
    0 Votes
    1 Posts
    836 Views
    No one has replied
  • QTcpSocket bandwidth

    3
    0 Votes
    3 Posts
    3k Views
    L
    QTcpSocket will always buffer your data for asynchronous transfer. You can set the amount of data buffered while reading using "QAbstractSocket::setReadBufferSize()":http://doc.qt.digia.com/qt/qabstractsocket.html#setReadBufferSize. Technically QTcpSocket has one abstraction layer less than QDataStream, so it may provide better performance. However, I seriously doubt that there is any difference in pratice, because usually the network bandwidth will be the limiting factor, not the processing power. So go for the most convenient solution, regardless wheter you use QDataStream, QTcpSocket or low level read() and write(), as you will almost always provide data at a higher rate your network can handle.