Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • 0 Votes
    3 Posts
    2k Views
    G
    it works now. tnx for your help... i had problem with some dll
  • 0 Votes
    4 Posts
    3k Views
    W
    Hi there, thanks for the tipp to build a test case. Indeed, a similar application with only one QTextEdit runs just fine. After two more hours of debugging I found this to be the problem: @setCentralWidget(ui->tabWidgetMain);@ Due to this (experimentally induced) line of code, the texEditPAD was not visible during runtime! (Just the tabWidget is visible, nothing else.) Thus, any call to any function of that TextEdit was doomed to fail. After removing the "setCentralWidget" line, it works fine. Thanks for your replies, wumpus
  • Regarding displaying busy cursor

    3
    0 Votes
    3 Posts
    5k Views
    S
    In my opinion, setOverrideCursor is corresponding to restoreOverrideCursor, so you can either @ QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); for(int i=0;i<size;i++) { . . . } QApplication::restoreOverrideCursor(); @ or @ for(int i=0;i<size;i++) { QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); . . . QApplication::restoreOverrideCursor(); } @
  • Cannot find key in INI file with QRegExp

    7
    0 Votes
    7 Posts
    4k Views
    J
    Yehh I divide query onto 2 parts @ QString CInifile::_getValue(const QString & section, const QString &key) { QStringList::const_iterator item = _getSectionItem(section); QStringList::const_iterator atEnd = _inifileContent.constEnd(); if(item == atEnd) return QString::null; QRegExp rxWithComment(QString("^\s*%1\s*=(\s*)(.+)(?=\s)(\s+)(//)|#.").arg(key)); QRegExp rxWithoutComment(QString("^\s%1\s*=(\s*)(.+)(?=\s)(\s+)").arg(key)); QRegExp *rx; while(++item != atEnd) { rx = &rxWithoutComment; if((item->indexOf("//") >= 0) || (item->indexOf("//") >= 0)) rx = &rxWithComment; if(rx->indexIn(*item) > 0) return rx->cap(2); } return QString::null; } @ Question to Andre Some time ago I worked with the MySql NDB cluster. In my.ini there were N [mysqld] sections where N equals number of MySql servers in the cluster. So in which section of N QSettings will store a value, 4Ex, @ QSettings::setValue("mysqld/port", 1234); @ ?
  • Phonon snapshot problems

    6
    0 Votes
    6 Posts
    4k Views
    B
    While I can write competent C++ and Qt front-end code, I am not really very skilled at playing around with compilers and libraries and making them jump through hoops. I am not able to find any direct instructions for how to take something from the KDE site and updating my Qt installation with it. I tried just installing the KDE Windows stuff, but the phonon stuff is then in dll/pdb files rather than the lib files that Qt expects (for the first level of problem anyway). Google is failing me (which is rare...). Do you happen to know of any source for such instructions? (the KDE user forum is pretty close to useless)
  • 0 Votes
    2 Posts
    2k Views
    V
    Seems like QT creates replica buttons in the toolbar popup menu and only connects the signal slots. Hence other things like mouse press event etc will not work
  • How to set the location of a widget inside QToolbar ?

    3
    0 Votes
    3 Posts
    3k Views
    V
    Solved by changing the order of creation of child widget. thanks Gerolf
  • Call method in "parent" window from child window.

    17
    0 Votes
    17 Posts
    19k Views
    K
    Sry must have missed that part.
  • 0 Votes
    3 Posts
    3k Views
    A
    Qt itself uses lots of Windows platform API internally (on windows, obviously, not on Linux). Are you looking for automatic code translation between code written for windows using native APIs to Qt APIs? If so: don't hold you breath. I do not think there is or will ever be a reliable way to do that. P.S. Moving. This has nothing to do with language bindings.
  • Problem with WA_TranslucentBackground

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Segmentation fault in setupUi() method

    5
    0 Votes
    5 Posts
    4k Views
    A
    And the offending .ui file?
  • QFileDialog or KFileDialog, dialog dirs/files together

    2
    0 Votes
    2 Posts
    2k Views
    R
    Thanks, I had already decided :)
  • ODBC: Oracle 9i; client 11g: Problem with trimming ends of long strings

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Problem in displaying window?

    14
    0 Votes
    14 Posts
    5k Views
    L
    You can handle any event listed "here":http://doc.qt.nokia.com/latest/qwidget.html#protected-functions.
  • Qtablewidgetitem and qlistwidgetitem

    4
    0 Votes
    4 Posts
    3k Views
    F
    Uhm, maybe a cycle can do this: @for( int i = 0; i < ui->listWidget->count; i++) if( ui->listWidget->item( i ) == your_item ) index = i; break; @ Nothing smarter come into my mind (except having a separate model).
  • Which Signal to use for QTabwidget ?

    4
    0 Votes
    4 Posts
    3k Views
    R
    I don't think if currentChanged() is emitted if an already selected tab is clicked! Otherwise, this works fine.
  • How can we just display image if we don't have any base widget?

    6
    0 Votes
    6 Posts
    3k Views
    P
    Thank you.........
  • Multi threaded OpenGL

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • DAO for objects?

    3
    0 Votes
    3 Posts
    3k Views
    F
    Thanks, it is what I was looking for!
  • [SOLVED] QtoolBar inside of the Qdockwidget

    3
    1 Votes
    3 Posts
    12k Views
    K
    yes, the code gives me the results i want. thank you very much sigrid :)