Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Crash in QVariantMap/QVariantList destructor

    8
    0 Votes
    8 Posts
    5k Views
    G
    Mixing wrong DLLs can lead to that effect. The "Dependency Walker":http://www.dependencywalker.com/ shows you the loaded (or missing) DLLs. Be aware, that it shows different results than using it from within the IDE, as the latter may have manipulated the search PATH.
  • [SOLVED] problem with textEdit layout

    7
    0 Votes
    7 Posts
    3k Views
    K
    thank you Eus. thank you everybody. i never knew that i could resize the buttons after the layout was made. this topic is solved.
  • QTableView QCheckBox QComboBox

    8
    0 Votes
    8 Posts
    4k Views
    G
    There's a wiki article "Combo Boxes in Item Views":http://developer.qt.nokia.com/wiki/Combo_Boxes_in_Item_Views that shows you how to create a [[Doc:QStyledItemDelegate]] subclass for that task.
  • QVector append but empty

    4
    0 Votes
    4 Posts
    3k Views
    S
    What does return @qDebug() <<l_return;@ ?
  • [SOLVED] Editable QComboBox get manually inserted value

    5
    0 Votes
    5 Posts
    3k Views
    M
    Be sure and add [Solved] to the beginning of your thread title if it's solved. Thanks!
  • Template "subdirs" and translations

    3
    0 Votes
    3 Posts
    5k Views
    J
    Someone could confirm that it's not possible to use lupdate on a TEMPLATE = subdirs? I am facing the same problem and would like to avoid the batch solution
  • [SOLVED] Delegate at QTableView

    6
    0 Votes
    6 Posts
    5k Views
    M
    tnx, all for help! I'm solve this problem by myself. Validator doesn't work when the text in QLineEdit is programmatically sets to not valid. I solve this problem to set additional validation to the setEditorData function.
  • Getting hardware serial number

    2
    0 Votes
    2 Posts
    3k Views
    A
    There is no Qt API for that. You will have to rely on system-dependant API, and that is outside the scope of this channel.
  • QTableView, QSqlTableModel and programmaticaly insert inew row.

    6
    0 Votes
    6 Posts
    5k Views
    A
    OK many thanks
  • What's the point of QTextCodec::mibEnum?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Mistake in QT DOC ?

    4
    0 Votes
    4 Posts
    2k Views
    M
    Done: https://bugreports.qt.nokia.com/browse/QTBUG-21067
  • 0 Votes
    1 Posts
    3k Views
    No one has replied
  • [Solved] Two different orientations in one print

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] Problems with debug and release configuration

    5
    0 Votes
    5 Posts
    2k Views
    jensen82J
    Sorry! You're right. The rebuild did not work correctyl. After uninstalling/reinstalling mingw and QtCreator it works. Thank you very much!!!
  • Sending a signal to my mainwindow

    4
    0 Votes
    4 Posts
    5k Views
    M
    @MyMainWindow(){ MyWidget * wdgt = new MyWidget(this); connect(wdgt, SIGNAL(mySignal()), this, SLOT(onComeSignal())); } class MyWidget : public QWidget{ Q_OBJECT public: MyWidget(QWidget * parent): QWidget(parent){ QPushButton * btn = new QPushButton(this); connect(btn, SIGNAL(clicked (bool), this, SLOT(onClick(bool))); } private slots: onClick(bool){emit mySignal();} signals: void mySignal(); }@
  • Define global var that is type of QScriptEngine throws exception

    2
    0 Votes
    2 Posts
    2k Views
    L
    You cannot create a script engine (and many other Qt objects) as long as you haven't created a Q(Core)Application. @ QScriptEngine* engine; int main(int argc, char *argv[]) { QApplication a(argc, argv); engine = new QScriptEngine(&a); MainWindow w; w.show(); return a.exec&#40;&#41;; } @ Passing the script engine as a global variable is a very questionable design decision. A better choice would be subclassing QApplication and adding it as a member or storing it as a property of QApplication (the QApplication instance is accessible from anywhere using qApp() or QCoreApplication::instance()).
  • [SOLVED] strange output for html bold

    3
    0 Votes
    3 Posts
    2k Views
    K
    hi Eus. we posted at the same time. I finally discovered my error. I had a textEdit and outputting the results to that textEdit. instead, i should have had a plainTextEdit and outputting the results to it.
  • Where do i find library files for windows

    10
    0 Votes
    10 Posts
    7k Views
    AlicemirrorA
    hi thambi03, your problem seems a problem over I spent a lot of time to understand what to do exactly in a general case. Please take a look to this (solved) thread, I hope it maybe useful for your case. http://developer.qt.nokia.com/forums/viewthread/5310/
  • How QtClucene work?

    3
    0 Votes
    3 Posts
    8k Views
    P
    There is no Qt-like interface for using QtLucene (=CLucene) in your app. What a pity!!! You have to compile+link the sources in your app and use CLucene API, like: int iFlags = lucene::document::Field::STORE_YES | lucene::document::Field::INDEX_TOKENIZED; lucene::document::Document doc; doc.add(*(_CLNEW lucene::document::Field(tFieldName, tFieldVal, iFlags))); writer.addDocument(&doc); search: lucene::analysis::WhitespaceAnalyzer analyzer; m_pQuery = lucene::queryParser::QueryParser::parse(a,_T("text"),&analyzer); lucene::search::IndexSearcher searcher(sDirOfIndex); m_pHits = searcher.search(m_pQuery);
  • How do i create my 1st Qt application

    7
    0 Votes
    7 Posts
    3k Views
    S
    Thanks for the information. i would love to hear more from you in future.