Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • 3D visualization of data varying in time - Ideas needed plz!

    3
    0 Votes
    3 Posts
    2k Views
    A
    Get yourself a copy of "this":http://www.edwardtufte.com/tufte/books_vdqi book, and get some inspiration
  • [SOLVED] How to get text of svgz file?

    10
    0 Votes
    10 Posts
    7k Views
    G
    In Qt, many classes that deal with data have a constructor or method that uses a QIODevice pointer as data source. It's always worth a try to look for those.
  • [SOLVED]QSystemTrayIcon for console applications

    3
    0 Votes
    3 Posts
    4k Views
    M
    Thanks a lot... it's working fine
  • QTableWidget itemDoubleClicked signal link to textEdit

    2
    0 Votes
    2 Posts
    4k Views
    C
    You should check "Signals & Slots":http://doc.qt.nokia.com/stable/signalsandslots.html So your slot function MUST be a member of a class derived from QObject and with Q_OBJECT preprocessor defined. edit for quote: bq. All classes that contain signals or slots must mention Q_OBJECT at the top of their declaration. They must also derive (directly or indirectly) from QObject.
  • Problem with multiple languages

    6
    0 Votes
    6 Posts
    3k Views
    M
    lupdate/linguist has worked without problems for me. I have two translations (en, fi): [code] TRANSLATIONS = ../resources/tr/moe_en.ts ../resources/tr/moe_fi.ts [/code] I have added the result files (.qm) to resources, and use them happily. Just a dummy question, but have you tr() calls in your software? I really have no good ideas, as translation has worked without problems for me.
  • MacOS override cmd+space shortcut

    4
    0 Votes
    4 Posts
    3k Views
    G
    Yes, you're right. I just checked with InDesign. Although I would call it suboptimal, as the Cmd-Space shortcut acutually does two things: it switches to the zoom tool in InDesign and it opens spotlight. It seems that it's not possible to setup this shortcut with Qt (actually one has to add "Ctrl+Space"). Maybe you will need to add some Carbon/Cocoa specific native calls to your application. A quick search on Google led me to nothing, unfortunately.
  • 0 Votes
    9 Posts
    10k Views
    G
    [quote author="szuzsq" date="1320135515"][quote author="rcari" date="1320134557"]Well, I guess you can mark the topic as solved then :)[/quote] yes, yes. but how to do?[/quote] Just go to the very first post in this thread and click the edit link on the right (just below your avatar and username). And add "[Solved]" to the topic. You can add a tag "solved" too (but others might be quicker with that :-) )
  • QTableWidget scroll one item down.

    5
    0 Votes
    5 Posts
    10k Views
    M
    Thank you ;) Once again you guys save the day ;) Keep up the good work!
  • Qtabbar style doesn't load

    6
    0 Votes
    6 Posts
    4k Views
    K
    and i want to use this toturial for managing hover events, it does'nt work good for me and whenever my mouse move to left of my tab (white space) it do my hover event , what should i do? "this link":http://developer.qt.nokia.com/faq/answer/how_can_i_detect_hover_events_on_the_tabs_of_a_qtabwidget
  • "expandBelow" in TreeView: Shortcut vs. method

    9
    0 Votes
    9 Posts
    5k Views
    A
    Yes, but that site has been open now for just over week, while the MR was in gitorious for well over a year now. I certainly hope the MR will be pushed to the new system, but I fear that not seeing your MR being taken up for more than a year can be such a demotivating experience that contributers won't bother anymore.
  • [Solved]Vector problems

    2
    0 Votes
    2 Posts
    3k Views
    A
    Basic C++ really. You are creating your vector on the stack. A QVector<myclass*> is created as soon as the class it is declared on is instantiated as an object. Then, when you want to use it, you suddenly tell the application that you want to put a pointer to a QVector<> on that address instead. That is wrong on two levels: first of all, a pointer to an object of class X is a different type than class X itself, so a pointer to a QVector is a different type than QVector itself. The other mistake is that you are trying to instantiate a QVector without using a contents type. QVector is a template class. That means that it only becomes a complete type when you specify the required arguments properly. As with all Qt containter classes, you need to specify the type to store. You did that correctly in your declaration, but you also need to do it in your implementation. Just QVector is not a valid type, but QVector<MyClass*> is. You can obviously not create an instance of an invalid type...
  • [SOLVED]Blink text in table

    7
    0 Votes
    7 Posts
    6k Views
    T
    I solved it in my own way. @void Logs::BlinkTextRows() { int row_count = model->rowCount(); int col_count = model->columnCount(); QModelIndex index; for( int i = 0; i < row_count; i++ ) { if (model->item(i,3)->data(Qt::DisplayRole).toString().compare("yes",Qt::CaseInsensitive) == 0) { if (model->item(i,4)->data(Qt::CheckStateRole) == Qt::Unchecked) { for (int j = 0;j < col_count;j++) { index = model->indexFromItem(model->item(i,j)); if (hidden) model->setData(index, myblink, Qt::ForegroundRole); else model->setData(index, myblink, Qt::ForegroundRole); }//for } //if model.. } //if compare }//For i if (hidden) hidden = false; else hidden = true; }@ It wasn't so hard in the end
  • Qgraphicsview can't preview by QPrintPreviewDialog

    3
    0 Votes
    3 Posts
    3k Views
    R
    Here the code that works for me: @ void MainWindow::print() { QPrinter printer(QPrinter::HighResolution); printer.setPaperSize(QPrinter::A4); QPrintPreviewDialog preview(&printer, this); connect(&preview, SIGNAL(paintRequested(QPrinter*)), SLOT(printPreview(QPrinter*))); preview.exec(); } void MainWindow::printPreview(QPrinter *printer) { QPainter painter(printer); m_graphicsView->render(&painter); } @
  • 0 Votes
    6 Posts
    7k Views
    D
    Again: please: stop necroposting. Start a brand new thread :)
  • [Solved] QGLShaderProgram problem getting object to show with OpenGL 3.0

    6
    0 Votes
    6 Posts
    6k Views
    B
    I see, that does seem better than my idea. Thank you very much. Your help is very much appreciated.
  • QNetworkAccessManager in/out data counter

    6
    0 Votes
    6 Posts
    3k Views
    A
    Just have QNetworkAccessManager and a couple of get/post requests. And want to have some connection info - count of rx/tx data.
  • How to tell when user locks computer (windows)?

    3
    0 Votes
    3 Posts
    3k Views
    M
    Lukas can u provide simple example how to use it, pls ?
  • How to check if a qwidget is closed ?

    7
    0 Votes
    7 Posts
    35k Views
    N
    Thank you uranusjr :) Much appreciated.
  • [SOLVED]QGraphicsView's dragMode

    6
    0 Votes
    6 Posts
    4k Views
    D
    [quote author="Volker" date="1320062134"] As general rule of thumb: If you want to add functionality in a virtual method you reimplement, make sure to call the base class' implementation too. Whether before or after your code depends, of course. And make sure you call the direct base class' implementation (not one of that's parents), even if that class doesn't actually reimplement the method - it might do so in the future and you're on the safe side in that case.[/quote] Thank you! Now I have full understanding about what's going on in QT's framework.
  • Direct access to FAT sectors using Qt

    10
    0 Votes
    10 Posts
    4k Views
    A
    Upset? I am not upset, and I don't think I gave reason to believe I was. No need to get personal on this one.