获取gridpane Javafx的数字行

时间:2016-07-29 06:40:45

标签: javafx

我有一个gridpane,行数可能是不确定的。 如何添加一行gridpane? 或者如何在gridpane的最后添加?

感谢。

1 个答案:

答案 0 :(得分:1)

只需找到qImage = new QPixmap(path); QPixmap qImage2 = qImage->scaled(this->width(),this->height(), Qt::KeepAspectRatio, Qt::SmoothTransformation); qImage2.toImage(); qImage2.save(QDir::currentPath()); qDebug()<<QDir::currentPath(); 的子项中的最大行索引:

GridPane
GridPane gridPane = ...
相关问题